package com.cskaoyan.javase.basic._2variable._6exercise;

/**
 * 小试牛刀
 * @since 17:30
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo {
    public static void main(String[] args) {
        // a
        System.out.println('a');
        // 98
        System.out.println('a' + 1);
        // helloa1
        System.out.println("hello" + 'a' + 1);
        // 98hello
        System.out.println('a' + 1 + "hello");
        // 5 + 5 = 55
        System.out.println("5 + 5 = " + 5 + 5);
        // 10 = 5 + 5
        System.out.println(5 + 5 + " = 5 + 5");
        // 10.0
        System.out.println(5 + 5.0);
        // 555.0
        System.out.println(5 + "5" + 5.0);

        // 以下写法可以,但是不规范,不要这么做
        byte b1 = 1, b2 = 2, b;
        // b = b1 + b2;
        // char c = b1 + b2;
        // 一共11个1
        // Integer number too large
        long d = 11111111111L;

        b1 = 100;
    }
}
